import http from '@/utils/http'
//列表
export const getListApi = async(parm) => {
  return http.get('/api/category/list', parm)
}
//新增
export const addApi = async(parm) => {
  return http.post('/api/category', parm)
}
//编辑
export const editApi = async(parm) => {
  return http.put('/api/category', parm)
}
//删除
export const deleteApi = async(parm) => {
  return await http.delete('/api/category', parm)
}
